import request from '@/utils/request'
export default class index {
    static getAccounts(query: any) {
        return request({
            url: 'api/accounts',
            method: 'get',
            params: query
        })
    }
    static getAffiliated(query: any) {
        return request({
            url: 'api/accounts/affiliated',
            method: 'get',
            params: query
        })
    }
    
    static getPublicTransfer(query: any) {
        return request({
            url: 'api/accounts/public/transfer',
            method: 'get',
            params: query
        })
    }
    
    static setPayStatus(id: any, data: any) {
        return request({
            url: `api/accounts/status/${id}`,
            method: 'put',
            data
        })
    }
    
    static updateOrderStatus(data: any) {
        return request({
            url: `api/accounts/order/status`,
            method: 'put',
            data
        })
    }
    
    static setMultiPayStatus(data: any) {
        return request({
            url: 'api/accounts/multi_reject',
            method: 'put',
            data
        })
    }
    
    static accountStatistics(query: any) {
        return request({
            url: 'api/accounts/statistics',
            method: 'get',
            params: query
        })
    }
    
    static getRechargeRecords(query: any) {
        return request({
            url: 'api/accounts/recharges',
            method: 'get',
            params: query
        })
    }
    
    static getCharmRecords(query: any) {
        return request({
            url: 'api/accounts/charms/records',
            method: 'get',
            params: query
        })
    }
    
    static getWealthRecords(query: any) {
        return request({
            url: 'api/accounts/wealth/records',
            method: 'get',
            params: query
        })
    }
    
    static getDiamondRecords(query: any) {
        return request({
            url: 'api/accounts/diamond/records',
            method: 'get',
            params: query
        })
    }
    
    static getCheckRecords(query: any) {
        return request({
            url: 'api/accounts/check/records',
            method: 'get',
            params: query
        })
    }
    
    static updateCheckRecord(check_id: any, data: any) {
        return request({
            url: `api/accounts/check/records/real_price/${check_id}`,
            method: 'put',
            data
        })
    }
    
    static addArtificial(query: any) {
        return request({
            url: 'api/accounts/make/artificial',
            method: 'get',
            params: query
        })
    }
    
    static getArtificial(query: any) {
        return request({
            url: 'api/accounts/artificial',
            method: 'get',
            params: query
        })
    }
    
    static withdraw(id: any, data: any) {
        return request({
            url: `api/accounts/artificial/withdraw/${id}`,
            method: 'put',
            data
        })
    }
    
    static withdrawing(id: any, data: any) {
        return request({
            url: `api/accounts/artificial/withdrawing/${id}`,
            method: 'put',
            data
        })
    }
    
    static delArtificial(id: any) {
        return request({
            url: `api/accounts/artificial/${id}`,
            method: 'delete'
        })
    }
    
    static artificialDetail(id: any) {
        return request({
            url: `api/accounts/artificial/detail/${id}`,
            method: 'get'
        })
    }
    
    static getArtificialRealPrice(id: any) {
        return request({
            url: `api/accounts/artificial/real_price/${id}`,
            method: 'get'
        })
    }
    
    static getArtificialList(query: any) {
        return request({
            url: 'api/accounts/artificial/list',
            method: 'get',
            params: query
        })
    }
    
    static getDialogArtificialDetail(query: any) {
        return request({
            url: 'api/accounts/artificial/list/detail',
            method: 'get',
            params: query
        })
    }
    
    static statisticsPrice() {
        return request({
            url: 'api/accounts/statistics/price',
            method: 'get'
        })
    }
    
    static getOverheadCost(query: any) {
        return request({
            url: 'api/accounts/overhead_cost',
            method: 'get',
            params: query
        })
    }
    
    static getAllOverheadCost() {
        return request({
            url: 'api/accounts/tt',
            method: 'get'
        })
    }
    
    static getWithdrawAuditAll(query: any) {
        return request({
            url: 'api/accounts/withdraw_audit_all',
            method: 'get',
            params: query
        })
    }
    
    static getAffiliatedUsers() {
        return request({
            url: 'api/accounts/affiliated/users',
            method: 'get'
        })
    }
    
    static getPublicTransferUsers() {
        return request({
            url: 'api/accounts/public/transfer/users',
            method: 'get'
        })
    }
    
    static queryJsOrder(query: any) {
        return request({
            url: `api/accounts/queryJsOrder`,
            method: 'get',
            params: query
        })
    }
    static getWithdrawUser(query: any) {
        return request({
            url: 'api/accounts/withdrawUser',
            method: 'get',
            params: query
        })
    }
    static getAccountCompany(query: any) {
        return request({
            url: 'api/accounts/accountCompany',
            method: 'get',
            params: query
        })
    }
    static bindCompany(data: any) {
        return request({
            url: 'api/accounts/bindCompany',
            method: 'put',
            data
        })
    }
    static delUserCompany(id: any) {
        return request({
            url: `api/accounts/delUserCompany/${id}`,
            method: 'delete'
        })
    }
    static getUserCompany(params: any) {
        return request({
            url: 'api/accounts/getUserCompany',
            method: 'get',
            params
        })
    }
    // 公司详情
    static getCompanyInfo(params: any) {
        return request({
            url: 'api/accounts/getCompanyInfo',
            method: 'get',
            params
        })
    }
    static getOrderVoucher(params: any) {
        return request({
            url: 'api/accounts/getOrderVoucher',
            method: 'get',
            params
        })
    }
    static getOrderList(params: any) {
        return request({
            url: 'api/order/list',
            method: 'get',
            params
        })
    }
    // 充值黑名单列表
    static getRechargeBlackList(params: any) {
        return request({
            url: 'api/rechargeBlack/list',
            method: 'get',
            params
        })
    }
    // 充值黑名单列表新增
    static setRechargeBlackAdd(data: any) {
        return request({
            url: 'api/rechargeBlack/add',
            method: 'post',
            data
        })
    }
    // 充值黑名单列表删除
    static setRechargeBlackDel(data: any) {
        return request({
            url: 'api/rechargeBlack/del',
            method: 'post',
            data
        })
    }
    // 临时充值黑名单-列表
    static shortRechargeBlack(params: any) {
      return request({
          url: 'api/shortRechargeBlack/list',
          method: 'get',
          params
      })
    }
    // 临时黑名单-新增
    static shortRechargeBlackAdd(data: any) {
        return request({
            url: 'api/shortRechargeBlack/add',
            method: 'post',
            data
        })
    }
    // 临时黑名单-删除
    static shortRechargeBlackDel(data: any) {
        return request({
            url: 'api/shortRechargeBlack/del',
            method: 'post',
            data
        })
    }
    // 扣款/赠送钻石记录
    static getfundList(params: any) {
        return request({
            url: 'api/diamond_records',
            method: 'get',
            params
        })
    }
    // 扣款/赠送钻石记录新增
    static setfundList(data: any) {
        return request({
            url: 'api/diamond_records',
            method: 'post',
            data
        })
    }
    // 获取提现次数
    static getcash_number() {
        return request({
            url: 'api/systems/withdraw/cash_number/list',
            method: 'get',
        })
    }
    // 提现次数设置
    static setcash_number(data: any) {
        return request({
            url: 'api/systems/withdraw/cash_number',
            method: 'post',
            data
        })
    }
    // 用户资产明细列表
    static userWalletStatList(params: any) {
      return request({
          url: 'api/statistics/userWalletStatList',
          method: 'get',
          params
      })
  }
}
